
import { FilterColumn, DayuGridOptions, ButtonProp,Pager} from '@/common/dayu-common'
import { AuthTag, DataLockState } from '@/common/AuthState'

class DayuGridProps{
    vxeOptions: DayuGridOptions;
    filters: Array<FilterColumn>=[];
    useAuthTag: boolean = false;
    useMasterLock: boolean = false;
    useRowLock: boolean = false;
    authTag:number = AuthTag.All;
    masterLockState:number = DataLockState.UNLOCKED;
    toolbarSearchBtn: ButtonProp = new ButtonProp(true);
    toolbarSearchResetBtn: ButtonProp = new ButtonProp(true);
    toolbarAddBtn: ButtonProp = new ButtonProp(true);
    toolbarEditBtn: ButtonProp = new ButtonProp(true);
    toolbarDelBtn: ButtonProp = new ButtonProp(true);
    toolbarExportBtn: ButtonProp = new ButtonProp(true);
    rowFileBtn: ButtonProp = new ButtonProp(true);
    rowInfoBtn: ButtonProp = new ButtonProp(true);
    rowEditBtn: ButtonProp = new ButtonProp(true);
    rowDelBtn: ButtonProp = new ButtonProp(true);
    usePager: boolean = true;
    editableCodeTypeProps: Array<string>=[];

    constructor(vxeGridOptions:DayuGridOptions){
        this.vxeOptions = vxeGridOptions;
    }
  }

  export {DayuGridProps}